package com.card323.crpg.cmdhandler;

import java.awt.Color;

import com.card323.crpg.Hero;

public class CommandHelper {
	public static boolean sure(Hero hero, String msg) {
		hero.send_message(msg + "[y/n]", Color.BLUE);
		String msg1 = hero.get_message();
		if (msg1.matches("(\\s)*y(|es)(\\s)*"))
			return true;
		hero.send_message("操作取消");
		return false;

	}
}
